<template>
    <div class="row">
        <el-checkbox v-model="comp.enabled">{{ comp.__classname__ }}</el-checkbox>
        <el-button round size="small" :icon="Document" @click="gm.toConsole(comp)"></el-button>
    </div>

</template>

<script lang="ts" setup>
import { Document } from '@element-plus/icons-vue'
import gm from './gm'

const props = defineProps<{
    comp: CCComponent,
    update: Number,
}>()

// if(!props.comp.__classname__.startsWith('cc.')){
//     const tmp = Object.getOwnPropertyDescriptors(props.comp)
//     const list = []
//     for(let k in tmp){
//         if(k === 'node') continue;
//         else if(k.startsWith('_')) continue;
//         else {
//             const v = tmp[k]
//             if(v.writable && v.enumerable)
//                 list.push({k, v: v.value})
//         }
//     }
// }
</script>